package service.states;

import javax.xml.bind.annotation.XmlElement;

/**
 * Created with IntelliJ IDEA.
 * User: Claudio "Dna" Bonesana
 * Date: 16.04.13
 * Time: 17:59
 */

public class StateService {

    private String name;
    private String usedKey;
    private StateValue value;

    public String getName() {
        return name;
    }

    @XmlElement(name = "Name")
    public void setName(String name) {
        this.name = name;
    }

    @XmlElement(name = "UsedKey")
    public String getUsedKey() {
        return usedKey;
    }

    public void setUsedKey(String usedKey) {
        this.usedKey = usedKey;
    }

    public StateValue getValue() {
        return value;
    }

    @XmlElement(name = "Value")
    public void setValue(StateValue value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "STATE: " + name + " -> " + value;
    }
}
